package com.qf.common.core.utils;

/**
 * --- 缘分让我们相遇乱世以外 ---
 *
 * @author SJY
 * 2024/12/27
 */
public class UserUtils {
    private static ThreadLocal<Integer> threadLocal = new ThreadLocal<>();

    public static void setUid(Integer uid) {
        threadLocal.set(uid);
    }

    public static Integer getUid() {
        return threadLocal.get();
    }
    public static void removeUid() {
        threadLocal.remove();
    }
}
